﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class init1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "UnpackingAre_Entity");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "UnpackingAre_Entity",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Area = table.Column<int>(type: "int", nullable: false),
                    BackStation = table.Column<int>(type: "int", nullable: false),
                    Deviceid = table.Column<int>(type: "int", nullable: false),
                    Flow = table.Column<int>(type: "int", nullable: false),
                    GetFullTaskType = table.Column<int>(type: "int", nullable: false),
                    GetFullWithEmptyTaskType = table.Column<int>(type: "int", nullable: false),
                    IsCK = table.Column<bool>(type: "bit", nullable: false),
                    IsEnable = table.Column<bool>(type: "bit", nullable: false),
                    MESName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    PreStation = table.Column<int>(type: "int", nullable: false),
                    PutFullTaskTypeFromAGV = table.Column<int>(type: "int", nullable: false),
                    PutFullTaskTypeFromCache = table.Column<int>(type: "int", nullable: false),
                    PutFullTaskTypeFromLK = table.Column<int>(type: "int", nullable: false),
                    PutFullTaskTypeFromMacine = table.Column<int>(type: "int", nullable: false),
                    Station = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UnpackingAre_Entity", x => x.Id);
                });
        }
    }
}
